<%@page import="org.jeecgframework.web.util.StaticValue"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>
<div class="easyui-layout" fit="true">
	<div region="center" style="padding:1px;">
		<t:datagrid name="zySendInspectionPlanList" checkbox="true" fitColumns="false" title="巡检计划" 
			actionUrl="zyInspectionPlanController.do?datagridOfIpListOfIpProblemAnalysisReport&${params }" idField="id" fit="true" queryMode="group" sortName="state" >
			<t:dgCol title="巡检计划主键"	field="id"  	hidden="true"	queryMode="single"  width="120" />
			<t:dgCol title="巡检计划ID"	field="planId"    		queryMode="single"  query="true"	width="100" url="zyInspectionPlanController.do?detailsOfPlan&id={id}" funname="planDetials" />
			<t:dgCol title="设备SN"		field="esSn"    		queryMode="single"	query="true"	width="90" />
			<t:dgCol title="机型"		field="esType"    		width="100" sortable="false" />
			<t:dgCol title="异常类型"	field="exType"    		width="130" sortable="false" dictionary="<%=StaticValue.DIC_IR_EX_TYPE %>"	/>
			<t:dgCol title="标准值"		field="esRuleValue"    	width="220" sortable="false" />
			<t:dgCol title="异常值"		field="exValue"    		width="80" sortable="false" />
			<t:dgCol title="影院名称"	field="cmName"			queryMode="single"  query="true"	width="180" sortable="false" />
			<t:dgCol title="院线"		field="cmDepartName"	queryMode="single"  query="true"	width="180" sortable="false" />
			<t:dgCol title="省市"		field="pttAndtt"		width="100"	sortable="false" />
			<t:dgCol title="省市"		field="es.territoryId"		hidden="true"	queryMode="single"  query="true" sortable="false" />
			<t:dgCol title="巡检时间"	field="ipPlanDate"		width="120"	sortable="false" formatter="yyyy-MM-dd"/>
			<t:dgCol title="巡检单位"	field="ipDepartName"		queryMode="single"  query="true"	width="80"/>
			<t:dgCol title="工程师"		field="egName"			width="120"	sortable="false"/>
			
			<t:dgCol title="操作" field="opt" width="100"></t:dgCol>
			<t:dgFunOpt funname="viewIpReport(id)" title="查看巡检报告" ></t:dgFunOpt>
<%--			<t:dgFunOpt operationCode="fenpai" funname="sendPlanCol(id)" title="分派" exp="state#eq#${optRule }"></t:dgFunOpt>--%>
<%--			<t:dgToolBar operationCode="adds" title="批量分派" icon="icon-add" url="" funname="sendPlanToolBar"></t:dgToolBar>--%>
<%--			<t:dgToolBar operationCode="daochu" title="导出" icon="icon-putout" url="" funname="exportIp"></t:dgToolBar>--%>
		</t:datagrid>
	</div>
</div>
<script type="text/javascript">
$(function(){
	$("#zySendInspectionPlanListtb").find("input[name='actualDate_begin']").attr({"class":"Wdate","id":"actualDate_begin","style":"height:20px;width:90px;"}).click(function(){
		WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'actualDate_end\')}'});
		});
	$("#zySendInspectionPlanListtb").find("input[name='actualDate_end']").attr({"class":"Wdate","id":"actualDate_end","style":"height:20px;width:90px;"}).click(function(){
		WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'actualDate_begin\')}'});
		});
	territoryLink('zySendInspectionPlanList','es.territoryId',1);
});
function viewIpReport(ipId){
	addOneTab("查看巡检报告","zyInspectionReportController.do?goViewOrUpateIr&zyIpId="+ ipId +"&operationType=view");
}
</script>
<%--<script type="text/javascript" src="webpage/com/zybk/zy_inspection_plan/zyInspectionPlanList.js"></script>--%>